from odoo import api, fields, models


# 引入odoo内置的板块

class Hotel_stock(models.Model):
    _name = 'hotel.stock'
    # 相当于给了此模型一个唯一id，之后很多地方需要用到
    _description = 'hotel stock information'
    warehouse_number = fields.Char(
        string='仓库编号',
        required=True
    )
    warehouse_name = fields.Char(
        string='仓库名称',
        required=True
    )
    position_description= fields.Char(
        string='位置说明',
        required=True
    )
    default_pos=fields.Boolean(
        'POS默认',
        default=False
    )
    default_front_desk = fields.Boolean(
        '前台默认',
        default=False
    )